﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;

namespace Geo_Meet
{
    public partial class Chat : PhoneApplicationPage
    {
        public Chat()
        {
            InitializeComponent();
        }

//        private void SendMessage_Click(object sender, RoutedEventArgs e)
//        {

//    if (!string.IsNullOrWhiteSpace(chatInput.Text))
//    {
//        var chatMessage = new ChatMessage()
//        {
//            From = name,
//            Content = chatInput.Text.Trim(),
//            DateTime = DateTime.UtcNow.ToString("yyyy-MM-dd HH:mm:ss"),
//            Channel = App.CurrentChannel.Uri
//        };
//        InsertChatMessage(chatMessage);
//    }
//    ReadyForNextMessage();
//}
 
//private async void InsertChatMessage(ChatMessage message)
//{
//    TextBoxChatMessages.Text += string.Format("{0}\n", message.ToString());
//    await chatTable.InsertAsync(message);
//    ReadyForNextMessage();
//}
 
//private void ReadyForNextMessage()
//{
//    TextBoxMessage.Text = "";
//    TextBoxMessage.Focus(Windows.UI.Xaml.FocusState.Programmatic);
//}
  
    }
}